package com.fantabest.console.client.widget;

import com.extjs.gxt.ui.client.Style.LayoutRegion;
import com.extjs.gxt.ui.client.widget.LayoutContainer;
import com.extjs.gxt.ui.client.widget.layout.BorderLayout;
import com.extjs.gxt.ui.client.widget.layout.BorderLayoutData;
import com.fantabest.common.client.RegistryKeys;
import com.fantabest.common.client.widget.LoginTopBar;
import com.fantabest.common.client.widget.SeasonSelectionPanel;

public class NorthContainer extends LayoutContainer {

	private LoginTopBar loginTopBar;
	private LayoutContainer seasonSelectionPanel;
	
	public NorthContainer() {
		super();
		this.setId(RegistryKeys.NORTH_CONTAINER);
		this.setLayout(new BorderLayout());
		
		loginTopBar = new LoginTopBar();
		BorderLayoutData northData = new BorderLayoutData(LayoutRegion.NORTH,35);
		this.add(loginTopBar,northData);
		
		seasonSelectionPanel = new SeasonSelectionPanel();
		BorderLayoutData centerData = new BorderLayoutData(LayoutRegion.CENTER);
		this.add(seasonSelectionPanel,centerData);
		
		this.layout(true);
	}

	public LoginTopBar getLoginTopBar() {
		return loginTopBar;
	}

	
	
}
